<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>
//    数组遍历
//    var arr=["a","b","c"];
//    for(var i=0;i<arr.length;i++){
////        console.log(arr[i]);
//        console.log(arr[arr.length-1-i]);
//    }
//    逆向思维
//    var arr=["a","b","c"];
//    for(var i=arr.length-1;i>=0;i--){
//        console.log(arr[i]);
//    }


</script>
</body>
</html>